/*
 * @Author: 吴竹叶 2107206923@qq.com
 * @Date: 2023-11-01 17:27:25
 * @LastEditors: 吴竹叶 2107206923@qq.com
 * @LastEditTime: 2023-11-03 14:38:51
 * @FilePath: \BZ_JT_AnQuanHuanBaoGuanLiApp\src\api\fireFighting.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'
import qs from 'qs'
// -------------------------------------------------- 消防综合统计 -------------------------------------------------- //
/**
* 高层建筑总数量显示
*
* @export
* @params {*}
* @return {*}
*/
export const highBuildHomePage = (data) => {
  return request({
    url: '/admin/xf/XfImportantManagement/highBuildHomePage',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
* 消防重点部位总数量显示
*
* @export
* @params {*}
* @return {*}
*/
export const importantPositionHomePage = (data) => {
  return request({
    url: '/admin/xf/XfImportantManagement/importantPositionHomePage',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * 消防重点部位统计
 *
 * @export
 * @params {*}
 * @return {*}
 */
export const importantPositionNum = (data) => {
  return request({
    url: '/admin/xf/XfImportantManagement/importantPositionNum',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
* 本年度隐患数量
*
* @export
* @params {*}
* @return {*}
*/
export const dangersLevelNum = (data) => {
  return request({
    url: '/admin/xf/XfdangersLedgerHome/dangersLevelNum',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
* 本年度隐患整改率
*
* @export
* @params {*}
* @return {*}
*/
export const dangersLedgerRate = (data) => {
  return request({
    url: '/admin/xf/XfdangersLedgerHome/dangersLedgerRate',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
* 年度重点工作进度统计
*
* @export
* @params {*}
* @return {*}
*/
export const yearWorkProgressStatistic = (data) => {
  return request({
    url: '/admin/xf/XfdangersLedgerHome/yearWorkProgressStatistic',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
* 隐患类别分析
*
* @export
* @params {*}
* @return {*}
*/
export const dangerCategoryAnalysis = (data) => {
  return request({
    url: '/admin/xf/XfdangersLedgerHome/dangerCategoryAnalysis',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * 应急队伍数量
 *
 * @export
 * @params {*}
 * @return {*}
 */
export const emergencyTeamNum = (data) => {
  return request({
    url: '/admin/xf/XfEmergencyPlan/emergencyTeamNum',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 *
 * 企业数量
 *
 * @export
 * @params {*}
 * @return {*}
 */
export const getCompanyStatistics = (data) => {
  return request({
    url: '/admin/xf/XfCompany/getCompanyStatistics',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 *
 * 消防智能综合评价排名
 *
 * @export
 * @params {*}
 * @return {*}
 */
export const getCompanyScoreFirstList = (data) => {
  return request({
    url: '/admin/xf/XfPerformEvaluateController/getCompanyScoreFirstList',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 *
 * 本年度事故事件
 *
 * @export
 * @params {*}
 * @return {*}
 */
export const environmentEventNumText = (data) => {
  return request({
    url: '/admin/xf/XfEnvironmentEvent/environmentEventNumText',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 *
 * 本年度事故事件
 *
 * @export
 * @params {*}
 * @return {*}
 */
export const getExpertStatistics = (data) => {
  return request({
    url: '/admin/xf/XfExpert/getExpertStatistics',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 *
 * 环境事件事故数量统计
 *
 * @export
 * @params {*}
 * @return {*}
 */
export const accidentEventLevel = (data) => {
  return request({
    url: '/admin/xf/XfAccidentEventStatistics/accidentEventLevel',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 *
 * 报警总数
 *
 * @export
 * @params {*}
 * @return {*}
 */
export const selectHomeAlarmCount = (data) => {
  return request({
    url: '/admin/xf/XfdangersLedgerHome/selectHomeAlarmCount',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * 首页视频报警类型统计
 * @export
 * @params {*}
 * @return {*}
 */
export const selectVideoeventTypeAlarmCount = (data) => {
  return request({
    url: '/admin/xf/XfdangersLedgerHome/selectVideoeventTypeAlarmCount',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * 首页传感器报警类型统计
 * @export
 * @params {*}
 * @return {*}
 */
export const selecteventTypeAlarmCount = (data) => {
  return request({
    url: '/admin/xf/XfdangersLedgerHome/selecteventTypeAlarmCount',
    method: 'POST',
    data: qs.stringify(data)
  })
}

// -------------------------------------------------- 消防生产投入 -------------------------------------------------- //

/**
 * 年度投入计划列表
 *
 * @export
 * @params {*}
 * @return {*}
 */
export const productPlanList = (data) => {
  return request({
    url: '/admin/xf/XfProductPlanController/productPlanList',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * 费用使用台账列表
 *
 * @export
 * @params {*}
 * @return {*}
 */
export const getCostLedgerList = (data) => {
  return request({
    url: '/admin/xf/XfProductPlanController/getCostLedgerList',
    method: 'POST',
    data: qs.stringify(data)
  })
}
// -------------------------------------------------- 消防重点部位 -------------------------------------------------- //

/**
 * 消防重点管理列表
 *
 * @export
 * @params {*}
 * @return {*}
 */
export const importantPositionList = (data) => {
  return request({
    url: '/admin/xf/XfImportantManagement/importantPositionList',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * 消防重点管理列表
 *
 * @export
 * @params {*}
 * @return {*}
 */
export const importantPositionDetail = (data) => {
  return request({
    url: '/admin/xf/XfImportantManagement/importantPositionDetail',
    method: 'POST',
    data: qs.stringify(data)
  })
}

// -------------------------------------------------- 房屋租赁消防安全 -------------------------------------------------- //

/**
 * 房屋出租管理列表查询
 *
 * @export
 * @params {*}
 * @return {*}
 */
export const roomLetManagement = (data) => {
  return request({
    url: '/admin/xf/XfImportantManagement/roomLetManagement',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * 房屋出租管理详情
 *
 * @export
 * @params {*}
 * @return {*}
 */
export const roomLetManagementDetail = (data) => {
  return request({
    url: '/admin/xf/XfImportantManagement/roomLetManagementDetail',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * 房屋承租管理列表查询
 *
 * @export
 * @params {*}
 * @return {*}
 */
export const roomLesseeManagement = (data) => {
  return request({
    url: '/admin/xf/XfImportantManagement/roomLesseeManagement',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * 房屋承租管理列表查询
 *
 * @export
 * @params {*}
 * @return {*}
 */
export const roomLesseeManagementDetail = (data) => {
  return request({
    url: '/admin/xf/XfImportantManagement/roomLesseeManagementDetail',
    method: 'POST',
    data: qs.stringify(data)
  })
}
